<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改订单管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-order-edit" th:object="${hzOrder}">
            <input name="orderId" th:field="*{orderId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商户号：</label>
                <div class="col-sm-8">
                    <input name="merchantId" th:field="*{merchantId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">商户简称：</label>
                <div class="col-sm-8">
                    <input name="extend_merchantName" th:field="*{extend_merchantName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道：</label>
                <div class="col-sm-8">
                    <input name="channelId" th:field="*{extend_channelName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">业务：</label>
                <div class="col-sm-8">
                    <input name="tranName" th:field="*{tranName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商户订单号：</label>
                <div class="col-sm-8">
                    <input name="merTradeNo" th:field="*{merTradeNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">渠道订单号：</label>
                <div class="col-sm-8">
                    <input name="chaTradeNo" th:field="*{chaTradeNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">交易金额：</label>
                <div class="col-sm-8">
                    <input name="amt" th:value="(*{amt} / 100)" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户费用：</label>
                <div class="col-sm-8">
                    <input name="merFee" th:value="(*{merFee} /100)" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道费用：</label>
                <div class="col-sm-8">
                    <input name="chaFee" th:value="(*{chaFee} /100)" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平台收益：</label>
                <div class="col-sm-8">
                    <input name="plaFee" th:value="(*{plaFee} /100)" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">返回码：</label>
                <div class="col-sm-8">
                    <input name="respCode" th:field="*{respCode}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">返回码说明：</label>
                <div class="col-sm-8">
                    <input name="respDesc" th:field="*{respDesc}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">渠道返回码：</label>
                <div class="col-sm-8">
                    <input name="chaRespCode" th:field="*{chaRespCode}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">渠道返回码说明：</label>
                <div class="col-sm-8">
                    <input name="chaRespDesc" th:field="*{chaRespDesc}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">银行编码：</label>
                <div class="col-sm-8">
                    <input name="bankCode" th:field="*{bankCode}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">银行名称：</label>
                <div class="col-sm-8">
                    <input name="bankName" th:field="*{bankName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">支行名称：</label>
                <div class="col-sm-8">
                    <input name="bankBranchName" th:field="*{bankBranchName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联行号：</label>
                <div class="col-sm-8">
                    <input name="unionNo" th:field="*{unionNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卡号：</label>
                <div class="col-sm-8">
                    <input name="pan" th:field="*{pan}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">身份证号：</label>
                <div class="col-sm-8">
                    <input name="cardId" th:field="*{cardId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">户名：</label>
                <div class="col-sm-8">
                    <input name="cardName" th:field="*{cardName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">手机号：</label>
                <div class="col-sm-8">
                    <input name="telphone" th:field="*{telphone}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">扩展信息：</label>
                <div class="col-sm-8">
                    <input name="msgExt" th:field="*{msgExt}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">已和上游对账：</label>
                <div class="col-sm-8">
                    <input name="isCheck" th:value="*{isCheck==1?'是':'否'}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">对账日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input readonly name="checkTime" th:value="${#dates.format(hzOrder.checkTime, 'yyyy-MM-dd')}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">对账结果：</label>
                <div class="col-sm-8">
                    <input name="checkReslut" th:field="*{checkReslut}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">批次订单号：</label>
                <div class="col-sm-8">
                    <input name="batchOrderNo" th:field="*{batchOrderNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">已成功通知：</label>
                <div class="col-sm-8">
                    <input name="doNotice" th:value="*{doNotice==1?'是':'否'}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最后通知时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="noticeTime" th:value="*{#dates.format(noticeTime, 'yyyy-MM-dd')}" class="form-control" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">已经通知次数：</label>
                <div class="col-sm-8">
                    <input name="noticeCount" th:field="*{noticeCount}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">原交易商户订单号：</label>
                <div class="col-sm-8">
                    <input name="refundMerReqNo" th:field="*{refundMerReqNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">渠道返回订单号：</label>
                <div class="col-sm-8">
                    <input name="chaRspTradeNo" th:field="*{chaRspTradeNo}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户异步通知地址：</label>
                <div class="col-sm-8">
                    <input name="notifyUrl" th:field="*{notifyUrl}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户同步通知地址：</label>
                <div class="col-sm-8">
                    <input name="returnUrl" th:field="*{returnUrl}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注1：</label>
                <div class="col-sm-8">
                    <input name="remark1" th:field="*{remark1}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注2：</label>
                <div class="col-sm-8">
                    <input name="remark2" th:field="*{remark2}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注3：</label>
                <div class="col-sm-8">
                    <input name="remark3" th:field="*{remark3}" class="form-control" type="text" readonly>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "mng/order";
        $("#form-order-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-order-edit').serialize());
            }
        }

        $("input[name='checkTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='noticeTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>